package com.app.web.front.model;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Record;

public class Reply extends Model<Reply>{
	
	private static final long serialVersionUID = -2998814222448990585L;
	public static final Reply dao = new Reply();
	
	public Record getReply(Object id){
		return Db.findFirst("select r.*, u.user_name, u.pic_url from reply r "+
							"inner join user u on r.user_id = u.id where r.id = ?", id);
	}
}
